package mtt.us.client.views.navigation;

import mtt.us.client.views.navigation.events.ShowNaviViewEvent;
import mtt.us.hmvcFramework.client.hmvc.events.AddViewEvent;
import hmvc4gwt.client.controller.Controller;
import hmvc4gwt.client.event.HmvcEvent;
import hmvc4gwt.client.event.HmvcEventListener;

public class NavigationController extends Controller implements HmvcEventListener {

	
	public void doInit() {
		
		register(ShowNaviViewEvent.class, this);
	}

	public void handleEvent(HmvcEvent event) {
		
		if (event instanceof ShowNaviViewEvent) {
			fireEvent(new AddViewEvent(getView()), true, false, false);
		}
		
	}
}
